from po.base import Base
from selenium.webdriver.common.by import By

class Page2(Base):
    #定位器
    list_loc = (By.XPATH, '/html/body/div/div/section/aside/ul/li/ul/li[13]/a')
    # del_loc=(By.XPATH,'/html/body/div[1]/div/section/section/main/div[1]/div/div[1]/div[3]/div/div[1]/div/table/tbody/tr[2]/td[5]/div/i')
    # dele_loc=(By.CSS_SELECTOR,'#app > div > section > section > main > div.container > div > div.el-table__inner-wrapper > div.el-table__body-wrapper > div > div.el-scrollbar__wrap.el-scrollbar__wrap--hidden-default > div > table > tbody > tr > td.el-table_3_column_16.is-center.el-table__cell > div > i > svg')
    # del_loc=(By.CLASS_NAME,'el-icon')
    del_loc=(By.XPATH,'//*[@id="app"]/div/section/section/main/div[1]/div/div[1]/div[3]/div/div[1]/div/table/tbody/tr[2]/td[5]/div/i')

    def list(self):
        self.click(self.list_loc)

    def delete(self):
        self.click(self.del_loc)
